'' Octopilot -- VideoOut.spin
'' (c) 2008-2009 Ben Levitt
'' http://code.google.com/p/octopilot/
''
'' Show current info on a video out, usable as an overlay with a FPPOV flight video feed


OBJ
  config :  "Config"
  tv     :  "TV_Text"


VAR
  long inValsAddr
  long outValsAddr
  long defaultValsAddr
  long navStateAddr
  

PUB Start(insAddr, outsAddr, defaultsAddr, _navStateAddr)
  inValsAddr := insAddr
  outValsAddr := outsAddr
  defaultValsAddr := defaultsAddr
  navStateAddr := _navStateAddr
  tv.start(config#videoPinBase)

  ' Setup overlay screen text
  tv.str(string("octopilot"))
  

PUB Apply | navState
  ' Update overlay screen text
   